//package com.zdp.applet.rest;
//
//import com.zdp.applet.remote.OrderRemoteServer;
//import com.zdp.common.domain.bo.SubmitOrderBO;
//import com.zdp.common.result.ResultInfo;
//import org.apache.ibatis.io.ResolverUtil;
//import org.springframework.amqp.rabbit.core.RabbitTemplate;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//
///**
// * @author sesshomaru
// * @date 2021/7/10 0:43
// */
//@RestController
//@RequestMapping("dev")
//public class TestController {
//
//    @Autowired
//    private RabbitTemplate rabbitTemplate;
//
//    @Autowired
//    private OrderRemoteServer orderRemoteServer;
//
//    @GetMapping("mq")
//    public void mq() {
//        rabbitTemplate.convertAndSend("zdp.ex", "zdp.test.queue", "hello my-seckill-prod");
//    }
//
//    @PostMapping("order")
//    public ResultInfo order(@RequestBody SubmitOrderBO submitOrderBO) {
//        return orderRemoteServer.create(submitOrderBO);
//    }
//}
